package biz

import (
	"github.com/go-redis/redis/v8"
	"github.com/google/wire"
	"gorm.io/gorm"
	"phm/auth"
	webmanage2 "phm/internal/biz/webmanage"
)

// ProviderSet is biz providers.
var ProviderSet = wire.NewSet(
	auth.NewAuthRepo,
	NewGreeterUsecase,
	NewRaRadarUseCase,
	NewSysParameterUseCase,
	webmanage2.NewUserUseCase,
	webmanage2.NewSysRoleUseCase,
	webmanage2.NewSysOperationUseCase,
	webmanage2.NewSysPermissionUseCase,
	webmanage2.NewSysMessageUseCase,
)

// DataRepo for sql and auth.
type DataRepo interface {
	GetDB() *gorm.DB
	GetRedis() *redis.Client
	GetAuth() auth.AuthRepo
}
